<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>黑马面面</title>
    <link rel="stylesheet" href="./css/normalize.css">
    <!-- 先引入css文件 放到自己css文件上面 -->
    <link rel="stylesheet" href="./css/swiper.min.css">
    <link rel="stylesheet" href="./css/index.css">
    <!-- px 转化为 rem的vscode插件  cssrem -->
</head>
<body>
    <!-- flexible.js 不管你屏幕多大，都是分成十等分 然后根据屏幕的大小，比如iPhone6/7的是375px 
        则每一等份就是37.5px 这就是为什么设置html以及cssrem的初始字体大小为 37.5
    -->
    <!-- 头部区域 -->
    <section class="wrap">
        <header class="header">黑马面面</header>

        <nav class="nav">
            <a href="#" class="item">
                <img src="./icons/icon1.png" alt="">
                <span>HR面试</span>
            </a>
            <a href="#" class="item">
                <img src="./icons/icon2.png" alt="">
                <span>笔试</span>
            </a>
            <a href="#" class="item">
                <img src="./icons/icon3.png" alt="">
                <span>技术面试</span>
            </a>
            <a href="#" class="item">
                <img src="./icons/icon4.png" alt="">
                <span>模拟面试</span>
            </a>
            <a href="#" class="item">
                <img src="./icons/icon5.png" alt="">
                <span>面试技巧</span>
            </a>
            <a href="#" class="item">
                <img src="./icons/icon6.png" alt="">
                <span>薪资查询</span>
            </a>
        </nav>
        <!-- go模块 -->
        <section class="go">
            <img src="./images/go.png" alt="">
        </section>
    </section>

    <!-- 就业指导模块 -->
    <section class="content">
        <div class="con-hd">
            <h4>
                <span class="icon"><img src="./icons/i2.png" alt=""> </span>
                就业指导
            </h4>
            <a href="#" class="more">更多>></a>
        </div>

        <!-- 旋转木马轮播图模块 -->
        <div class="get_job_focus">
            <div class="swiper-container get_job_fo">
                <div class="swiper-wrapper">
                  <div class="swiper-slide">
                      <a href="#"><img src="./images/pic.png" alt=""></a>
                      <p>老师教你面试技巧</p>
                  </div>
                  <div class="swiper-slide">
                      <a href="#"><img src="./images/pic1.png" alt=""></a>
                      <p>老师教你面试技巧</p>
                  </div>
                  <div class="swiper-slide">
                      <a href="#"><img src="./images/pic2.png" alt=""></a>
                      <p>老师教你面试技巧</p>
                  </div>

                </div>
                <!-- Add Pagination -->
                <!-- 小圆点 -->
                <div class="swiper-pagination"></div>
                <!-- 前进后退箭头 -->
                <!-- <div class="swiper-button-next"></div>
                <div class="swiper-button-prev"></div> -->

            </div>
            <!-- 前进后退箭头 -->
            <div class="swiper-button-next"></div>
            <div class="swiper-button-prev"></div>
        </div>
        
    </section>

    <!-- 充电学习模块 -->
    <section class="content study_con">
        <div class="con-hd">
            <h4>
                <span class="icon"><img src="./icons/i1.png" alt=""> </span>
                充电学习
            </h4>
            <a href="#" class="more">更多>></a>
        </div>

        <!-- 学习轮播图模块 -->
        <div class="study">
            <div class="swiper-container get_study_fo">
                <div class="swiper-wrapper">
                  <div class="swiper-slide">
                      <img src="./images/pic1.png" alt="">
                      <h5>说地道英语</h5>
                      <p>156人学习</p>
                  </div>
                  <div class="swiper-slide">
                      <img src="./images/pic2.png" alt="">
                      <h5>说地道英语</h5>
                      <p>156人学习</p>
                  </div>
                  <div class="swiper-slide">
                      <img src="./images/pic2.png" alt="">
                      <h5>说地道英语</h5>
                      <p>156人学习</p>
                  </div>
                  <div class="swiper-slide">
                      <img src="./images/pic2.png" alt="">
                      <h5>说地道英语</h5>
                      <p>156人学习</p>
                  </div>
                </div>
                <!-- Add Pagination -->
                <div class="swiper-pagination"></div>
            </div>
        </div>
    
    </section>
    <!-- 底部 -->
    <footer class="footer">
        <a href="">
            <img src="./icons/home.png" alt="">
            <p>首页</p>
        </a>
        <a href="">
            <img src="./icons/ms.png" alt="">
            <p>模拟面试</p>
        </a>
        <a href="">
            <img src="./icons/net.png" alt="">
            <p>技术面试</p>
        </a>
        <a href="">
            <img src="./icons/user.png" alt="">
            <p>我的</p>
        </a>

    </footer>


    <script src="./js/flexible.js"></script>
    <script src="./js/swiper.min.js"></script>
    <script>
        // 立即执行函数就是在定义的时候就立即执行，执行完以后就释放，包括函数内部的所有变量。
        (function(){//(function(){})() 立即执行函数
            var swiper = new Swiper('.get_job_fo', {
            // 能够显示的banner个数
            slidesPerView: 3,
            // 每个slide之间的距离
            spaceBetween: 30,
            centeredSlides: true,
            loop: true,
            // pagination: {这个是小圆点
            //     el: '.swiper-pagination',
            //     clickable: true,
            // },
            // 添加左右箭头
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
                },
            });
        })();

        // 第二个函数的轮播图
        (function(){
            var swiper = new Swiper('.get_study_fo', {
            slidesPerView: 2.3,
            spaceBetween: 20,
            // pagination: {
            //     el: '.swiper-pagination',
            //     clickable: true,
            //     dynamicMainBullets: 5
            //  },
            });
        })()

  </script>
</body>
</html>